package cn.yunhe.controller;

import cn.yunhe.entity.Admin;
import cn.yunhe.service.IAdminService;
import cn.yunhe.util.BaseAction;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
public class AdminAction extends BaseAction {
    private IAdminService adminService;

    @Override
    public String execute() throws Exception {
        List<Admin> list=adminService.getAll();
        getMapRequest().put("list",list);
        return SUCCESS;
    }

}
